const roleName = [{
	required: true,
	message: '角色名称不能为空',
	trigger: 'blur'
}]

const dataAuthority = [{
	required: true,
	message: '数据权限类型不能为空',
	trigger: 'blur'
}]

const roleComment = [{
	required: true,
	message: '角色备注不能为空',
	trigger: 'blur'
}]

const branchValue = [{
	required: true,
	message: '所属组织不能为空',
	trigger: 'blur'
}]

const organizationName = [{
	required: true,
	message: '机构名称不能为空',
	trigger: 'blur'
}, {
	min: 3,
	max: 20,
	message: '机构名称长度 在 3 到 20 个字符',
	trigger: 'blur'
}]

const departmentType = [{
	required: true,
	message: '部门类型不能为空',
	trigger: 'blur'
}]

const sortNum = [{
	required: true,
	message: '排序号不能为空',
	trigger: 'blur'
}]

const roleGenre = [{
	required: true,
	message: '角色类型不能为空',
	trigger: 'blur'
}]

export {
	roleName,
	dataAuthority,
	roleComment,
	branchValue,
	organizationName,
	departmentType,
	sortNum,
	roleGenre
}
